package entity

type UserEbike struct {
	ID int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	UserID int64 `gorm:"column:user_id;type:BIGINT" json:"user_id"`

	EbikeID int64 `gorm:"column:ebike_id;type:BIGINT" json:"ebike_id"`

	ShareTime int64 `gorm:"column:share_time;type:BIGINT" json:"share_time"`

	IsManager int `gorm:"column:is_manager;type:TINYINT" json:"is_manager"`

	Photo string `gorm:"column:photo;type:VARCHAR(255)" json:"photo"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *UserEbike) TableName() string {
	return "user_ebikes"
}
